what is the difference between an electric and a magnetic field